package com.example.mybatisdemo.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

@Data
public class IdSequence extends Model<IdSequence> {
    @TableId(type = IdType.AUTO)
    private long id;

    // mybatis只有主键会报错
    private String sn;
}
